package com.wy.dao;

import com.wy.pojo.Dengj;
import com.wy.pojo.Park;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ParkDao extends JpaRepository<Park,Integer> {

    @Query(value = "SELECT * FROM park WHERE parentid=?1",nativeQuery = true)
    List<Park> searchidAll(Integer parentid);
}
